#include "Lake.h"


Lake::Lake(int newX,int newY,int newZ,GLUquadricObj *newP, GLint texture_id):Shape(texture_id)
{
	this->x = newX;
	this->y = newY;
	this->z = newZ;
	this->p = newP;
}

void Lake::DrawHip()
{
	glPushMatrix();
	 glRotatef(90,1,0,0);
	 glColor3f(0., 0., 1.0);
	glPushMatrix();
	glTranslatef(this->x,-5,this->z);
	 gluCylinder(this->p,6,6,5 ,20,10);
	 glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

	 gluDisk(this->p,0,6,20,10);
	 glDisable (GL_BLEND);

	 glPopMatrix();
	glPushMatrix();
	glTranslatef(this->x+3,-5,this->z);
	glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

	 gluDisk(this->p,0,6,20,10);
	 glDisable (GL_BLEND);
	
	gluCylinder(this->p,6,6,5 ,20,10);
	glPopMatrix();
	glPushMatrix();
	glTranslatef(this->x-3,-5,this->z);
	gluCylinder(this->p,6,6,5 ,20,10);
	 glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

	 gluDisk(this->p,0,6,20,10);
	 glDisable (GL_BLEND);
	glPopMatrix();
	glPopMatrix();
	 glutPostRedisplay();
	
}

Lake::~Lake(void)
{
}
